package top.infopub.mgr.bpa.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.ContractExtInvestDao;
import top.infopub.model.bpa.ContractExtInvest;
import top.infopub.mgr.bpa.service.ContractExtInvestService;

@Service
public class ContractExtInvestServiceImpl extends GenericServiceImpl<ContractExtInvest, String> implements
		ContractExtInvestService {

	@Autowired
	private ContractExtInvestDao contractExtInvestDao;
	
	@Override
	public GenericDao<ContractExtInvest, String> getDao() {
		return contractExtInvestDao;
	}

    @Override
    public ContractExtInvest selectLatestContractExtInvestByExtId(String proCode) {
        return contractExtInvestDao.selectLatestContractExtInvestByExtId(proCode);
    }

}